﻿
namespace m_pricelist._BAL_
{
    public class Type_Appendix
    {
        private int lIdValue;
        private string sShortNameValue;
        private string sAppNameValue;
        private string sSupplierNameValue;

        public Type_Appendix()
        {
            lId = 0;
            sShortName = "";
            sAppName = "";
            sSupplierName = "";
        }

        public Type_Appendix(int id, string shortname, string appname, string suppliername)
        {
            lId = id;
            sShortName = shortname;
            sAppName = appname;
            sSupplierName = suppliername;
        }

        public int lId
        {
            get { return lIdValue; }
            set { lIdValue = value; }
        }

        public string sShortName
        {
            get { return sShortNameValue; }
            set { sShortNameValue = value; }
        }

        public string sAppName
        {
            get { return sAppNameValue; }
            set { sAppNameValue = value; }
        }

        public string sSupplierName
        {
            get { return sSupplierNameValue; }
            set { sSupplierNameValue = value; }
        }

        public override string ToString()
        {
            return lId + ", " + sShortName + "\n" +
                " " + sAppName + "\n" +
                " " + sSupplierName;
        }
    }
}
